package com.chongbangbang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chongbangbang.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author TP
 * @since 2022-03-16 15:20:38
 */
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    /**
    根据openId获取userId
    */
    UserInfo getUserByOpenId(@Param("openId") String openId);
}
